package com.ternnetwork.oa.repository.work;


import com.ternnetwork.oa.entity.work.Event;
import com.ternnetwork.persistence.repository.BaseRepository;
import org.springframework.data.jpa.repository.Query;
import java.util.Date;
import java.util.List;

public interface EventRepository extends BaseRepository<Event, Long> {

    @Query("from Event t where t.start>=?1 and t.end<?2")
    List<Event> findAll(Date start, Date end);
}
